package com.atguigu.java.ai.langchain4j.controller;

//import dev.langchain4j.model.chat.ChatModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ChatController {

//    ChatModel chatModel;
//
//    public ChatController(ChatModel chatModel) {
//        this.chatModel = chatModel;
//    }
//
//    @GetMapping("/chat")
//    public String model(@RequestParam(value = "message", defaultValue = "Hello") String message) {
//        return chatModel.chat(message);
//    }
}